----------------------------------------------------------------------------------------------------------------------------------
--[[

    一个简易的数据下发同步库。给用来 debuff 时间下发给 玩家检查界面

]]--
----------------------------------------------------------------------------------------------------------------------------------
---
    local function GetReplica(self)
        return self.inst.replica.hutao_com_inspect_data or self.inst.replica._.hutao_com_inspect_data
    end
----------------------------------------------------------------------------------------------------------------------------------
local hutao_com_inspect_data = Class(function(self, inst)
    self.inst = inst

    self.data = {}

end,
nil,
{

})
------------------------------------------------------------------------------------------------------------------------------
-- 同步
    function hutao_com_inspect_data:SyncData()
        local replica = GetReplica(self)
        if replica then
            replica:SetInspectData(self.data)
        end
    end
------------------------------------------------------------------------------------------------------------------------------
---
    function hutao_com_inspect_data:Set(index,value)
        self.data[index] = value
        self:SyncData()
    end
------------------------------------------------------------------------------------------------------------------------------
return hutao_com_inspect_data







